/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.kallsonys.object;

import java.io.Serializable;
import java.math.BigDecimal;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import javax.xml.bind.annotation.XmlRootElement;

/**
 *
 * @author allan
 */
@Entity
@Table(name = "PARAMETEROMS")
@XmlRootElement
@NamedQueries({
    @NamedQuery(name = "Parameteroms.findAll", query = "SELECT p FROM Parameteroms p"),
    @NamedQuery(name = "Parameteroms.findByParameterid", query = "SELECT p FROM Parameteroms p WHERE p.parameterid = :parameterid"),
    @NamedQuery(name = "Parameteroms.findByParametername", query = "SELECT p FROM Parameteroms p WHERE p.parametername = :parametername"),
    @NamedQuery(name = "Parameteroms.findByParametertype", query = "SELECT p FROM Parameteroms p WHERE p.parametertype = :parametertype"),
    @NamedQuery(name = "Parameteroms.findByParametervalue", query = "SELECT p FROM Parameteroms p WHERE p.parametervalue = :parametervalue")})
public class Parameteroms implements Serializable {
    private static final long serialVersionUID = 1L;
    // @Max(value=?)  @Min(value=?)//if you know range of your decimal fields consider using these annotations to enforce field validation
    @Id
    @Basic(optional = false)
    @NotNull
    @Column(name = "PARAMETERID")
    private BigDecimal parameterid;
    @Basic(optional = false)
    @NotNull
    @Size(min = 1, max = 500)
    @Column(name = "PARAMETERNAME")
    private String parametername;
    @Basic(optional = false)
    @NotNull
    @Size(min = 1, max = 500)
    @Column(name = "PARAMETERTYPE")
    private String parametertype;
    @Basic(optional = false)
    @NotNull
    @Size(min = 1, max = 500)
    @Column(name = "PARAMETERVALUE")
    private String parametervalue;

    public Parameteroms() {
    }

    public Parameteroms(BigDecimal parameterid) {
        this.parameterid = parameterid;
    }

    public Parameteroms(BigDecimal parameterid, String parametername, String parametertype, String parametervalue) {
        this.parameterid = parameterid;
        this.parametername = parametername;
        this.parametertype = parametertype;
        this.parametervalue = parametervalue;
    }

    public BigDecimal getParameterid() {
        return parameterid;
    }

    public void setParameterid(BigDecimal parameterid) {
        this.parameterid = parameterid;
    }

    public String getParametername() {
        return parametername;
    }

    public void setParametername(String parametername) {
        this.parametername = parametername;
    }

    public String getParametertype() {
        return parametertype;
    }

    public void setParametertype(String parametertype) {
        this.parametertype = parametertype;
    }

    public String getParametervalue() {
        return parametervalue;
    }

    public void setParametervalue(String parametervalue) {
        this.parametervalue = parametervalue;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (parameterid != null ? parameterid.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof Parameteroms)) {
            return false;
        }
        Parameteroms other = (Parameteroms) object;
        if ((this.parameterid == null && other.parameterid != null) || (this.parameterid != null && !this.parameterid.equals(other.parameterid))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "com.kallsonys.object.Parameteroms[ parameterid=" + parameterid + " ]";
    }
    
}
